package com.jie.controller;


import com.jie.service.OperationLogService;
import com.jie.service.impl.OperationLogServiceImpl;
import com.jie.utils.R;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/ope")
@CrossOrigin //跨域
public class OperationLogController {
    @Autowired
    OperationLogServiceImpl logService;
    @Autowired
    OperationLogService operationLogService;
    @GetMapping("/page/{page}/{limit}")
    public R pageLimitAirport(@ApiParam(name = "page", value = "当前页码", required = true)
                              @PathVariable Long page,
                              @ApiParam(name = "limit", value = "每页记录数", required = true)
                              @PathVariable Long limit){

        return  logService.limit(page,limit);

    }

}
